﻿
#pragma once

#include "Renderer/OpenGL/OpenGLVertexArray.h"
#include "hzpch.h"
#include "Renderer/VertexArray.h"

namespace Hazel
{

    class OpenGLVertexArray : public VertexArray
    {
    public:
        OpenGLVertexArray();
        virtual ~OpenGLVertexArray();

        virtual void Bind() const override;
        virtual void Unbind() const override;
        virtual void AddVertexBuffer(const Ref<VertexBuffer> &vb) override;
        virtual void SetIndexBuffer(const Ref<IndexBuffer> &ib) override;

    private:
        uint32_t m_RendererID; // ← 必须在这里声明！
        std::vector<Ref<VertexBuffer>> m_VertexBuffers;
        Ref<IndexBuffer> m_IndexBuffer;
    };

} // namespace Hazel